package com.esiag.isidis.fi.pdsTeam.jms.connection;


import javax.jms.JMSException;

import com.esiag.isidis.fi.pdsTeam.annotation.Url;


public class ConnectionActiveMQ extends AbstractConnectionFactory{

	@SuppressWarnings("rawtypes")
	public ConnectionActiveMQ(Class msgClass) throws JMSException {
		super(msgClass);
	}

	@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public String getURL(Class msgClass) {
		Url url=(Url) msgClass.getAnnotation(Url.class);
		if(url!=null) return url.value();
		return null;
	}
	
}
